﻿@{
    ViewBag.Title = "病历中心";
}
@model List<zqdn.Models.Hospital.Case>

<div class="wrap">
    <div class="pat-case-page common-list">
        @if (Model.Count == 0)
        {
            <p style='text-align:center;margin-top:10px;'>暂无信息！</p>
        }
        @foreach (var item in Model)
        {

            <div class="list-data">
                <input type="hidden" value="@item.ID" id="cid"/>
                <ul>
                    <li class="items" id="left">
                        <div>
                            <img class="list-left-img" src="~/Content/images/pat-mycase.png" alt="我的病例">
                        </div>
                    </li>
                    <li class="items" id="center">
                        <div class="nocenter">
                            <p class="title">@item.Title</p>
                            <p class="user-message">
                                <span class="m1"></span>
                                <span class="m3">@item.CreatedTime.ToShortDateString()</span>
                            </p>
                        </div>
                    </li>

                    <li class="items" id="right" style="background-position: 0 22px !important;"></li>
                </ul>

            </div>
        }

    </div>
</div>


@section scripts
{
    <script>
        $(function () {
            $(".list-data").on("click", function () {
                location.href = "/HosCenter/AppointApply/?id=" + $("#cid").val() + "&source=2"
            });
        });
    </script>
}